import styles from './index.less';
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';

export default function IndexPage() {
  Sentry.init({
    dsn: 'http://483dc53a30d24941abde2c91564b75bb@8.136.184.224:9000/2',
    autoSessionTracking: true,
    integrations: [new Integrations.BrowserTracing()],

    // We recommend adjusting this value in production, or using tracesSampler
    // for finer control
    tracesSampleRate: 1.0,
  });
  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
      <button
        onClick={() => {
          window.add1();
        }}
      >
        Break the world
      </button>
    </div>
  );
}
